<?php
class Zenddn_Pagination{
    
    public function createPaginator($total, $currPage, $itemCountPerPage = 10, $pageRange = 3){
    	$adapter = new Zend_Paginator_Adapter_Null($total);
        $paginator = new Zend_Paginator($adapter);
        
        $paginator->setItemCountPerPage($itemCountPerPage);
        $paginator->setCurrentPageNumber($currPage);
        $paginator->setPageRange($pageRange);
        
        return $paginator;
    }
}